package com.education.wisdom.service.impl;

import com.education.wisdom.mapper.OrderUserPaperMapper;
import com.education.wisdom.pojo.OrderUserPaper;
import com.education.wisdom.service.OrderUserPaperService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderUserServiceImpl implements OrderUserPaperService{

    @Autowired
    private OrderUserPaperMapper orderUserPaperMapper;

    @Override
    public List<OrderUserPaper> OrderUserPaperlist(Integer paper) {
        return orderUserPaperMapper.OrderUserPaperlist(paper);
    }

    @Override
    public List<OrderUserPaper> OrderUserPaperlist3(Integer paper) {
        return orderUserPaperMapper.OrderUserPaperlist3(paper);
    }

    @Override
    public List<OrderUserPaper> OrderUserPaperlist1(Integer userId) {
        return orderUserPaperMapper.OrderUserPaperlist1(userId);
    }

    @Override
    public int InsertOrderPaper(OrderUserPaper orderUserPaper) {
        return orderUserPaperMapper.InsertOrderPaper(orderUserPaper);
    }

//    @Override
//    public List<OrderUserPaper> selectlist(Integer userId) {
//        return orderUserPaperMapper.selectlist(userId);
//    }

    @Override
    public OrderUserPaper SelectOrderUserPaper(Integer paperId,Integer userId) {
        return orderUserPaperMapper.SelectOrderUserPaper(paperId,userId);
    }

    @Override
    public OrderUserPaper SelectOrderUserPaper1(Integer paperId, Integer userId) {
        return orderUserPaperMapper.SelectOrderUserPaper1(paperId,userId);
    }

    @Override
    public int update(OrderUserPaper orderUserPaper) {
        return orderUserPaperMapper.update(orderUserPaper);
    }

    @Override
    public int delete(Integer paperId, Integer userId) {
        return orderUserPaperMapper.delete(paperId,userId);
    }

    @Override
    public List<OrderUserPaper> OrderUserPaperlist2(Integer userId, Integer paperId) {
        return orderUserPaperMapper.OrderUserPaperlist2(userId,paperId);
    }
}
